#define _CRT_SECURE_NO_WARNINGS 1
char* replaceSpace(char* s) {
    int i = 0;
    int j = 0;
    char* str = (char*)malloc(sizeof(char) * (1 + 3 * strlen(s)));
    while (s[i])
    {
        if (s[i] != ' ')
        {
            str[j++] = s[i++];
        }
        else
        {
            str[j++] = '%';
            str[j++] = '2';
            str[j++] = '0';
            i++;
        }
    }
    str[j] = '\0';
    return str;
}